add support for overriding the encoding in webif languages
authorFelix Fietkau <[email protected]>
Sun, 5 Feb 2006 18:46:09 +0000 (18:46 +0000)
committerFelix Fietkau <[email protected]>
Sun, 5 Feb 2006 18:46:09 +0000 (18:46 +0000)
SVN-Revision: 3146

openwrt/package/webif/files/usr/lib/webif/lang/fr/common.txt
openwrt/package/webif/files/usr/lib/webif/webif.sh

index 0abccffd8162a20481e1a0c1ad8da156af55070c..4abf012cd4bfb6996eff9ce70891ed4963cc9c1d 100644 (file)
@@ -1,3 +1,5 @@
+Encoding => UTF-8
+
 # Common
 Settings saved => Changemensts sauvegardés
 Settings not saved => Les changements n'ont pas ÃtésauvegardÃs
index 9a92fb9895781063b6b9467c4d2cca83e0cb6ace..1a665a814fbdf987c7b1bdf30e9965812187b0f3 100644 (file)
@@ -83,11 +83,13 @@ header() {
 Content-Type: text/html
 Pragma: no-cache
 
+<?xml version="1.0" encoding="@TR<<Encoding|ISO-8859-1>>"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
        <head>
        <title>@TR<<OpenWrt Administrative Console>></title>
                <link rel="stylesheet" type="text/css" href="/webif.css" />
+               <meta http-equiv="Content-Type" content="text/html; charset=@TR<<Encoding|ISO-8859-1>>" />
        </head>
        <body $4><div id="container">
            <div id="header">